<%@page import="com.liferay.portal.theme.ThemeDisplay"%>
<%@page import="com.util.LMSUtil"%>
<%@page import="com.slayer.service.LMSBookLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@include file="/html/library/init.jsp"%>
<%@page import="com.slayer.model.LMSBook"%>
<h1>Book Detail</h1>
<%
//ThemeDisplay td = (ThemeDisplay)request.getAttribute("THEME_DISPLAY");	
//long companyId = td.getCompanyId();
LMSBook lmsBook = null;
long bookId = ParamUtil.getLong(request,"bookId");
if(bookId >0L)
{
lmsBook = LMSBookLocalServiceUtil.fetchLMSBook(bookId); 		
}	
String backURL = ParamUtil.getString(request, "backURL");
%>
<br/><a href="<portlet:renderURL/>">&laquo; Go Back </a>
<%-- <liferay-ui:header
	backLabel="&laquo; Back to List" 
	title="Book Details" backURL="<%= backURL %>" />--%>

<c:if test="<%= Validator.isNotNull(lmsBook) %>">
	<table border="1">
		<tr>
			<td>Book Title</td>
			<td><%= lmsBook.getBookTitle() %></td>
		</tr>
		<tr>
			<td>Author</td>
			<td><%=lmsBook.getAuthor()  %></td>
		</tr>
		<tr>
			<td>Date Added</td>
			<td><%= lmsBook.getCreateDate() %></td>
		</tr>
		<tr>
			<td>Last Modified</td>
			<td><%= lmsBook.getCreateDate() %></td>
		</tr>						
	</table>
</c:if>
